package cn.hj.pet.domain;

import cn.hj.basic.domain.BaseDomain;
import cn.hj.org.domain.Shop;
import cn.hj.pet.domain.PetDetail;
import cn.hj.pet.domain.PetType;
import cn.hj.user.domain.User;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BaseDomain {

    private String name;

    private String resources;

    private BigDecimal saleprice;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date offsaletime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date onsaletime;

    private Integer state = 0;//0等于下架1等于上架

    private BigDecimal costprice;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createtime = new Date();

    private Long type_id;

    private PetType type;

    private Long shop_id;

    private Shop shop;

    private Long user_id;

    private User user;

    private Long search_master_msg_id;

    private PetDetail detail = new PetDetail();

    private Integer payType;
}
